<%@ page language="java" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>删除菜单</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
     <script type="text/javascript" src="scripts/jquery-1.4.2.js"></script>
	  <% 
           String  id=request.getParameter("id");
         %>  
     <script type="text/javascript" >
	    var idvalue="<%=id%>";
	    var  basePath="<%=basePath%>";
         if(confirm("您确定要删除菜单吗？")){
            var url1 = basePath+"tree/deleteMenu.shtml";
               $.ajax({
                    url: url1,
                    cache: false,
                    data: "id="+idvalue,
                    success: function(result){
                        
                        var obj=eval('('+result+')');
                        var msg=obj[0]['message'];
                        alert(msg);
                       top[1].location.reload();
                 }
                });
         }
	 </script>
  </head>
  
  <body>
  
  </body>
</html>
